<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('选择总行')" />
</head>
<body class="gray-bg">
<div class="col-sm-12 search-collapse">
	<form id="formId">
		<div class="select-list">
			<ul>
				<li>
					总行名称：
					<input type="text" name="head_bank"/>
				</li>
				<li>
					<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
					<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
				</li>
			</ul>
		</div>
	</form>
</div>
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table"  class="table text-nowrap"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        $(function() {
			var options = {
				url: ctx + "bankInfo/bankInfo/list1",
				showSearch: false,
				showRefresh: false,
				showToggle: false,
				showColumns: false,
				clickToSelect:true,
				columns: [{
					radio: true
				},
					{
						field : 'HEAD_BANK',
						title : '总行名称'
					},
					{
						field : 'PROVINCE',
						title : '省'
					},
					{
						field : 'CITY',
						title : '市'
					},
					]
			};
            $.table.init(options);
        });
        
        /* 添加用户-选择用户-提交 */
		function submitHandler(index, layero) {
			var rows = $.table.selectFirstColumns();
			if (rows.length == 0) {
       			$.modal.alertWarning("请至少选择一条记录");
       			return;
       		}
			$.modal.close();
			parent.$("#selectZh").val(rows);

		}
    </script>
</body>
</html>